package com.yg.entity.readAndWriteTemplates;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 对应sheet05，此表是教研项目表
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ResearchProject对象", description="对应sheet05，此表是教研项目表")
public class ResearchProjectRead implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "导出序号")
    @ExcelIgnore
    private int num;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @TableField(fill = FieldFill.INSERT)
    private String researchProjectId;

    @ApiModelProperty(value = "校验项目编号")
    @ExcelProperty("项目编号")
    private String id;

    @ApiModelProperty(value = "负责人姓名")
    @ExcelProperty("负责人")
    private String  head;

    @ApiModelProperty(value = "项目名称")
    @ExcelProperty("项目名称")
    private String name;

    @ApiModelProperty(value = "项目类型")
    @ExcelProperty("项目类型")
    private String type;

    @ApiModelProperty(value = "开始时间")
    @ExcelProperty("开始时间")
    @DateTimeFormat("yyyy.MM")
    private String startTime;

    @ApiModelProperty(value = "终止时间")
    @ExcelProperty("终止时间")
    @DateTimeFormat("yyyy.MM")
    private String endTime;

    @ApiModelProperty(value = "经费（万）")
    @ExcelProperty("经费（万元）")
    private Integer fund;

    @ApiModelProperty(value = "批准单位")
    @ExcelProperty("批准单位")
    private String turnUnit;

    @ApiModelProperty(value = "项目级别，参考字典表")
    @ExcelProperty("项目级别")
    private String researchProjectLevel;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    @ExcelIgnore
    private int deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    private Date gmtModified;

}
